import { message } from 'ant-design-vue';
import { useQueueMessage } from './strategy';
import { eventEmitter, setupMessageRegistry } from './event';

export function setupMessageModel(config) {
  useQueueMessage(message, config);
  setupMessageRegistry(message, eventEmitter);
}

export { eventEmitter };

export default message;
